package nju.bean.meeting.transporter.Request;


import nju.bean.meeting.transporter.Feedback.JudgeFeedback;

import org.junit.Test;

import junit.framework.TestCase;

public class CheckNameRequestTest extends TestCase {

	@Test
	public void test() {
		
		String validName = "gongshw";
		String invalidName = "nju";
		JudgeFeedback fb;
		
		CheckNameRequest request = new CheckNameRequest(validName);
		fb = (JudgeFeedback) request.deal();
		assertTrue(fb.getResult());
		
		request = new CheckNameRequest(invalidName);
		fb = (JudgeFeedback) request.deal();
		assertFalse(fb.getResult());
	}

}
